package day04;
/*
    switch可以接受的数据类型只有byte/short/int/char/string/，枚举
    优点:效率高、结构清晰
    缺点：只能对整数判断相等
    break:跳出switch

    循环三要素：
        循环变量的初始化
        循环的条件
        循环变量的改变

 */

import java.util.Scanner;

public class Demo03switch {
    public static void main(String[] args) {
        //创建对象
        Scanner sc = new Scanner(System.in);

        //接受数据
        int month = sc.nextInt();

        //输入你想查询的月份
        switch (month) {
            case 1:
                System.out.println("冬季");
                break;
            case 2:
                System.out.println("冬季");
                break;
            case 3:
                System.out.println("春季");
                break;
            case 4:
                System.out.println("春季");
                break;
            case 5:
                System.out.println("春季");
                break;
            case 6:
                System.out.println("夏季");
                break;
            case 7:
                System.out.println("夏季");
                break;
            case 8:
                System.out.println("夏季");
                break;
            case 9:
                System.out.println("秋季");
                break;
            case 10:
                System.out.println("秋季");
                break;
            case 11:
                System.out.println("秋季");
                break;
            case 12:
                System.out.println("冬季");
                break;
            default:
                System.out.println("你输入的月份不正确");
        }
    }
}
